import ChatRecord from '@/components/ChatRecord'; //首页模板
import Index from '@/components/Index'; //首页模板
import Login from '@/components/Login'; //首页模板
import MsgBox from '@/components/MsgBox'; //首页模板
import DEMO from '@/components/demo'; //首页模板
import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router)






export default new Router({
    routes: [
        {
            path: '/index',
            name: 'Index',
            component: Index
        },
        {
            path: '/msgbox/:userId',
            name: 'MsgBox',
            component: MsgBox
        },
        {
            path: '/login',
            name: 'Login',
            component: Login
        },
        {
            path: '/chatrecord/:userId',
            name: 'ChatRecord',
            component: ChatRecord
        },
        {
            path: '/demo',
            name: 'DEMO',
            component: DEMO
        }
    ]
})
